package com.jack90john;

import java.util.Map;

/**
 * Description:
 * Designer: jack
 * Date: 2018/4/4
 * Version: 1.0.0
 */
public class FirstTactics implements Command {

    private Map<Class<? extends Action>, Action> playerMap;

    public FirstTactics(Map<Class<? extends Action>, Action> playerMap) {
        this.playerMap = playerMap;
        System.out.println("开始执行第一套作战方案！");
    }

    @Override
    public void executed() {
        playerMap.forEach((s, o) -> o.attack());
    }

}
